﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="dialog_company.aspx.cs" Inherits="DTcms.Web.admin.dialog.dialog_company" %>
<%@ Import namespace="DTcms.Common" %>

<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,initial-scale=1.0,user-scalable=no" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<title>修改关联企业</title>
<link href="../skin/default/style.css" rel="stylesheet" type="text/css" />
<link href="../../scripts/artdialog/ui-dialog.css" rel="stylesheet" type="text/css" />
<link href="../css/pagination.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" charset="utf-8" src="../../scripts/jquery/jquery-1.11.2.min.js"></script>
<script type="text/javascript" charset="utf-8" src="../../scripts/jquery/Validform_v5.3.2_min.js"></script>
<script type="text/javascript" charset="utf-8" src="../../scripts/artdialog/dialog-plus-min.js"></script>
<script type="text/javascript" charset="utf-8" src="../js/common.js"></script>
<script type="text/javascript">
    var api = top.dialog.get(window); //获取窗体对象
    var cname = null;
    var cid = 0;

    //页面加载完成执行
    $(function () {
        //设置按钮及事件
        api.button([{
            value: '确定',
            callback: function () {
                if (cname != null && cid != 0) {
                    $(api.lb_companyname).text(cname);
                    $(api.txt_companyname).val(cname);
                    $(api.companyid).val(cid);
                }
                api.close().remove();
            },
            autofocus: true
        }, {
            value: '取消',
            callback: function () { }
        }]);
    });
    function select_list(obj, title, id) {
        $(".ltable tr").removeClass("tr_cur");
        $(obj).attr('class', 'tr_cur');
        cname = title;
        cid = id;
    }
</script>
<style type="text/css">
.tr_cur,.tr_cur:hover td{background-color:#16a0d3}
.tr_cur td { color:#fff}
</style>
</head>

<body>
<form id="form1" runat="server">
<!--工具栏-->
<div id="floatHead" class="toolbar-wrap">
  <div class="toolbar">
    <div class="box-wrap">
      <a class="menu-btn"></a>
      <div class="l-list">
        <div class="input-list">
           <asp:TextBox ID="txtKeywords" runat="server" CssClass="keyword" Width="300px" placeholder="输入网站名称/关键词" />
        </div>
        <div class="input-list">
           <asp:LinkButton ID="btnSearch" runat="server" CssClass="search" OnClick="btnSearch_Click"><span>搜索</span></asp:LinkButton>
        </div>
      </div>
    </div>
  </div>
</div>
<!--/工具栏-->

<!--列表-->
<div class="table-container">
  <asp:Repeater ID="rptList" runat="server">
  <HeaderTemplate>
  <table width="100%" border="0" cellspacing="0" cellpadding="0" class="ltable">
    <tr>
      <th align="left" style="padding-left:15px;">公司名称</th>
      <th width="18%">电话</th>
      <th width="18%">联系人</th>
      <th width="18%">添加时间</th>
    </tr>
  </HeaderTemplate>
  <ItemTemplate>
    <tr onclick="select_list(this,'<%#Eval("title")%>',<%#Eval("id")%>)" title="点击选中">
      <td style="padding-left:15px;"><%#Eval("title")%></td>
      <td align="center"><%#Eval("telphone")%></td>
      <td align="center"><%#Eval("lianxiren")%></td>
      <td align="center"><%#string.Format("{0:d}",Eval("add_time"))%></td>
    </tr>
  </ItemTemplate>
  <FooterTemplate>
    <%#rptList.Items.Count == 0 ? "<tr><td align=\"center\" colspan=\"4\">暂无记录</td></tr>" : ""%>
  </table>
  </FooterTemplate>
  </asp:Repeater>
</div>
<!--/列表-->
    <!--内容底部-->
<div class="line20"></div>
<div class="pagelist">
  <div id="PageContent" runat="server" class="default"></div>
</div>
<!--/内容底部-->

</form>
</body>
</html>
